<template>
	<view class="all-main">
		<view class="main">
			<view class="items blue-bg" @click="pathTo(1)">
				<u-icon name="list-dot" color="#ffffff" size="40"></u-icon>
				<view class="title">
					<text>架构管理</text>
				</view>
			</view>
			<view class="items red-bg m-t-30" @click="pathTo(2)">
				<u-icon name="red-packet-fill" color="#ffffff" size="40"></u-icon>
				<view class="title">
					<text>财务管理</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			pathTo(type) {
				let type_path = ''
				if (type == 1) {
					type_path = "/frameworks/index";
				} else {
					type_path = "/finance/index";
				}
				uni.navigateTo({
					url: '/pages/hzy/shareholder' + type_path
				})
			}
		}
	}
</script>

<style lang="scss">
	.all-main {
		.main {
			padding: 30rpx;
			
			.items {
				padding: 30rpx;
				border-radius: 10rpx;
				box-shadow: 7px 0px 30px -18px #888888;
				color: #ffffff;
				
				.title {
					padding-top: 30rpx;
					text-align: right;
					font-size: 40rpx;
				}
			}
			
			.blue-bg {
				background: linear-gradient(to right, #2979ff, #a0cfff);
			}
			
			.red-bg {
				background: linear-gradient(to right, #fa3534, #fab6b6);
			}
			
			.m-t-30 {
				margin-top: 30rpx;
			}
		}
	}
</style>
